=~ doesn't work in posix shell, only in bash, and we don't use bash. Signed-off-by: David Anderson <danderson@tailscale.com>