fix dist target on mac is broken

fix dist target on mac is broken