Using path.resolve instead of path.sep