Fix resolution of relative paths

gh-175