clone some scripts from https://github.com/mozilla-b2g/B2G