Use pwd -P to work on systemlinked locations.
Merge pull request #1677 from ratnikov/fix-symlinks-test

Use pwd -P to work on systemlinked locations.