Error handling for making directories.