Check for git package before defining