Adding support for .rb extension

Fixes #376