An implementing of Node.js Path, common for Browser and Node.js env.