Fix checking for repo dir without git/hg - Issue #110
Fixes issue #110 (closed) Now reports correct message (Error: could not find either a git or mercurial directory. Please re-run this in a proper repository.) when calling --install-hook on a non-repo directory and mercurial (or git) is missing from the system instead of crashing.