Fix pre-commit hook & path slashes on windows