Re-sync bin/update-oojs.sh with equivalent script in MediaWiki core

Change-Id: Iaf52db137a773cdeb7894382f04aaae9d679ee91