pre-commit hook correction for better portability