fix typos in getcwd