Fix return value in run_shell_command