+1 

something like:

if can_do_git_command
   return git_command || "Unknown"
else if can_do_rpm_command
   return rpm_command or "Unknown
else
    return "Unknown"
end

Also, i18n!  Nechci mluvit anglicky hloupé sardelku!