New algrithm for mac installer