Use ternary operator instead of 5 lines

For the oStrictHostKeyChecking we use the variable tmp, which is yes or
no, depending on the strict.

Signed-off-by: Aaron Karper <akarper@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>