Only detect gemdep files, not directories, etc.

If you had a directory that matched a gemdep file name such as Isolate
RubyGems would try to load it.  This would cause an exception when
trying to read the directory.

Now only file entries are examined.