support %{host}  substitution in command string