feat(builder): automatically run `git gc` on deploy

Closes #987

This should be replaced by a cronjob after we switch to the new init,
but this will do for now.
Fixed in 8bea9845d49430d4b6ca64d3e8d30f3c1361a6a0