fixed the getcwd stupidness