Reordered setup.sh and added the creation of the export dir.