update do.sh and enhance.sh

* in agdqScripts: update do.sh to do extra safe checking
* in photoProc: update enhance.sh to work with dash