Update cmh_get_target_type().

Updated cmh_get_target_type() to take in the name of the target to
analyze.