Make Git truly optional in build process