Made NO_GIT automatically get correct value based on the existence of $(JULIAHOME)/.git

+ other minor fixes