fix: configure husky hooks for reliable execution
Enhance husky pre-commit and pre-push hooks to ensure consistent and reliable execution.
- Set executable bit on both pre-commit and pre-push scripts.
- Implement robust PATH resolution within hooks using git rev-parse to find the repository root.
- Add a safety check for 'node_modules/.bin' directory existence before modifying the PATH.
- Addresses issues with tools not being found and inconsistent execution environments.