Disable submodule update, only install hooks if .git exists

.git isn't a real directory for submodules