Remove unnecessary newPath variable

`newPath` was created only to be `return`ed one line later, so I removed it.
Merge pull request #7 from adamnbowen/patch-1

Remove unnecessary newPath variable