Fix grep pattern in only_if condition