change queue.sh to use files instead of variables to hold pid lists
bugfix