CB-7199 control git/npm using platform.js

this should fix travis...