wscript: fix installing pre-commit with 'git worktree'