fix CommandResult.result access

I broke CommandResult usage in PR #168, fixing
throw assertion error in @command if cmd is None (so we get stack trace)
fix yum_clean_metadata