Modular and extended version of Node's path package