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.