Fixed to work with sublime text 3

I don't have any 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