add target_dir option, rename yiic_name to yiic_path