F/17 avoid globals

See https://github.com/brainstormmedia/git-plugin-updates/commit/b5abd85a7a3df7aff9d7f603ff8caa9aafc2da2f#commitcomment-4475263