Delete git if already exists, delete if it fails to checkout correctly.

Fixes #46