Don't pass directories to Gem::Specification#files.

http://rubygems.rubyforge.org/rubygems-update/Gem/Specification.html#method-i-files
"Only add files you can require to this list, not directories, etc.
Directories are automatically stripped from this list when building
a gem, other non-files cause an error."