Add nil extension handler and vice versa

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