Changed type of exception to something more appropriate.
Corrected directory name.