corrected prepare-for-darwin script