Update check_pattern

Changed search option to linesearch to clarify a bit.