Why is this here instead of right after the directory is created? If the test fails above this, the directory won't be deleted. (Not really the end of the world but kind of weird)