Update process.sh to latest dream API
Fixed mktemp for OSX