made bash run mac code only if on a mac