Avoid duplicate known_host entries for master

A quick fix (maybe raises other problems) for avoiding duplicate
entries for master node in known_hosts for root user on the master node.
Clear error states on SGE

Provide means to clear error states of SGE queue (not currently used
anywhere.
Resubmit jobs on remove node

Resubmit jobs running on the node that is to be removed to other nodes.