Fix node path.resolve error