Fix the --labelsfile switch as it was broken after the maxgraphs changes