Fixes resolving of relative paths