PAHMA979: code cleanup in shell scripts; better rendering of queue statuses