ensure git is installed before using git resource