Fix CLI
More thorough YUI module validity check