Made FileUtils slightly more testable