force exit if working directory is not an actual directory