Apparently my foray into using bash internals instead of grep didn't work, though it did when I originally tested it. More research will be required before switching back, and we're too close to release to bother.