Fixed check-git.py

Made a small change to scripts/check-git.py to return the correct current revision