I don't *think* the changes to this function are necessary. To use the version of install / uninstall that return a promise, call "plugman.raw.install()"