plugins: replace which command with type command