Merge pull request #319 from torkve/master

realpath and relpath implementation