Execute git commands only if .git is found; execute make distclean to remove old makefiles