improve `String` coercion in `system_command.rb`