Fixed a bug in _bin/deploy.sh where it fails to pull from the remote with rewritten history