Fix an issue with FileFinder finding "." as a directory
Summary: See D17430. This is buggy and hasn't come up before because we don't usually use the "d" (directory) mode.
Test Plan: Added a unit test and made it pass.
Reviewed By: chad
Differential Revision: https://secure.phabricator.com/D17455