-adjusted to get the node_names correctly from the qstat command