Added code so that qstat -f would also work if the new
-c option to not display completed jobs is used.
TRQ-1565