minor changes to make ito work into git hooks properly