removes a stray chdir