Fixed UnboundLocalError bug in execute_ipmi_command function