added compatibility for Sublime Text 3 (still works in ST2)