run_command: report system call errors instead of returning error codes