Currently, there's no way to change the cwd when using grunt-text-replace, and the destination ignores the path of the source file relative to the cwd, which makes it cumbersome to do a replace when using a more complex file structure.
If you want to, I'll submit a pull request, I've already got it working on my project.