Add nil extension handler

When a file has no extension, still searches for files of the same names
with predefined extensions. It handles cases like Gemfile ->
Gemfile.lock.