mw-core-get.sh: snapshot a mediawiki/core treeish

On labs we do not have a local replication of mediawiki/core, instead
fallback to git.wikimedia.org.

Change-Id: I37ff7884df542aba23d1db57dbcdb12362e9b180