Fix script under mac