Rewrites PHP pre-commit to log to file