changed file handling in file_manips

also minor changes to run_dq.py when running