Merge pull request #4 from BernhardHarrer/master

realpath for mac
Improve real path fix for mac from last commit