Refactor loading ruby-mode for various file name types