Merge pull request #1277 from ToJans/WindowsBugfixing

Some IO tests return alternate error codes on windows
Use regex on matching on some of File exceptions
cp_r should pinpoint place of failure on errors
Fixed a bug within File.rm_rf on windows