Use path.resolve to resolve paths of local files