Fix problem with grep not grabbing correct line number sometimes