Ensure hook scripts are converted to have UNIX line endings before running them