Re-fix sublime text 3 support

https://github.com/SublimeText/TrailingSpaces/commit/243ec703dbcbfbceece6b2ccc795226691ce55ec broke the plugin in st3

apparently sublime.version() is a string, and the global keyword was needed for some vars