getwd changed to getcwd