fix dist target on mac is broken