add PathUtils class

- move getRelativePath to new utils class (multiple usages)