Added a specific exception error for setting up directories.