Fix for #349: build issue when no git found