added pre-commit hooks for win and unix