CYB-247, git 1.7.1 does not support rev-list --count so we use wc -l

https://jira.ets.berkeley.edu/jira/browse/CYB-247

deploy script can now run w/ git 1.7.1 and newer versions of git.