fixed macosx script