added optional argument so to override default repo location

Fix rewrite-hooks.sh for installations which have the repositories directory somewhere other than the default /home/git/repositories