added optional argument so to override default repo location
Merge pull request #60 from amacarthur/fix-rewrite-hooks

added optional argument so to override default repo location