Remove references to System.IO.Abstractions
Also handle UnauthorizedAccessException