fix Syntax sensitivity when current syntax is Ruby on Rails

 Try running the following command in show panel(ctrl+backquote)
```
>>> import sublime
>>> import sublime_plugin
>>> import os
>>> import subprocess
>>> syntax = os.path.basename(view.settings().get('syntax'))
>>> syntax = os.path.splitext(syntax)[0]
>>> syntax
u'Ruby on Rails'
```