Make svnexternals.py replace git hooks

and fix bug with gitignore