Do not chdir into paths that do not exist