Node has a built-in `path` module. http://nodejs.org/api/path.html