Fixing compatibility with sublime text 3

I've patched this plugin to work with sublime text 3. I don't think it's backwards compatible now though.