Fix FreeBSD git installation.

Move git installation so that it is installed before the git clone is performed.