Translate relative paths to paths relative to the package.json file