judge if 'mkflag' exist