improve mg-fortran-display-label

Now it should be a bit more efficient in searching labels.