path: properly resolve relative paths
Merge pull request #1825 from nvloff/resolve_relative

path: properly resolve relative paths