tidied up check for no git