Fix issue #51 wherein paths were being rewritten incorrectly.
Merge pull request #54 from paypal/rewrite

Fix issue #51 wherein paths were being rewritten incorrectly.