removed all chdir commands from NoGuiAnalysis