bower:resolve task fail when component's name contains ".css"

```bower:resolve``` task fail when component's name contains ".css"
('animate.css', 'hint.css', ...)

```ruby
rake aborted!
Is a directory @ io_fread - bower_components/hint.css
```
I patched ```FileTest.file?``` to skip that case, but I think there is a more smarter approach.