Use CodeLoader.source_extension abstraction everywhere

There were still some parts of codeloader using hard-coded ".rb" instead
of the source_extension abstraction. Every occurrence has been replaced.
Merge pull request #2199 from programble/patch-1

Use CodeLoader.source_extension abstraction everywhere