fixed getcwd