githooks/pre-commit: fix obscure failure when missing directories "bin", "script"