Parse queue_id from SGE.

The queue adapter for the Sun Grid Engine has been modified
to properly extract the id number for the job submitted to the
queue.

The previous code was a copy-paste from PBS, which must
be further modified to play nice with SGE.
Modified code that probes queue in SGE.

This modification implements the correct way to
apply qstat with SGE.