Changed a couple of references from os.name == 'darwin' to sublime.platform() == 'osx'