Fixes to setup, analysis, and qsub parallel env