Fixed issue with FileManager.CleanDirectory

1. FileManager.CleanDirectory method now correctly cleans the target
directory and does throw an exception.