Use FileMatcher, DirectoryMatcher, and RootMatcher instead of File

This avoids Ruby 1.9.2 getting confused and picking the wrong File class when stubbing in a test.