install GNU coreutils in Mac and alias their commands