Use built-in path function
Merge pull request #1 from julien-c/master

Use built-in path function