replace shell.pwd() with internal function in node