fixed directory going forward using the params rather than hard coding, also fixed the commented out tmpfile clean up in cgsubmit_fixed