Eliminate duplication in FileUtilsTest.
Reduce duplication in FileUtils.
Merge pull request #4 from isbadawi/less-duplication

Eliminate duplication in FileUtils{,Test}