remove string replace with node path.resolve