Fix proxy path

This fix considers the actual target path again (which has been ignored).
fix tests for maintaining proxy path
Merge pull request #693 from EndangeredMassa/fix-path

Allow proxy to maintain the original target path