Fix automatic deployment when tree is up-to-date

If the tree was up-to-date due to a manual pull, the script behaved as if it had
also been rebuilt. Fix #17.