Node.js: extra methods for the path object.