Fixed grep regex throwing false negatives