Minor tweak to get around cannot get working directory error after deleting temp directory