Fixed to work with sublime text 3

I don't doubt that this was working, but it wasn't for me, so I made some little changes to make it work with my sublime text 3 installation, just sharing, nice evening