Your comments

And how about files without an extension, like Gemfile?
Never mind, it works as expected. I don't know, what I did wrong at my first try...
Could this be a bug on Linux? I just tested it on Mac OS X and it's working as expected... Have to re-evaluate on Linux again (tomorrow...)