More error checking for projects directory.