Add getPath() and cwd() to browser version
1.2.0