update osx scripts to work with 071 folder structure

and mimic the linux scripts.

tested on os x 10.8.2.

closes #1693.