Changed type of exception thrown when a directory cannot be found from FileNotFoundException to DirectoryNotFoundException. API breaking change.