Added case insensitive marker to grep error check.