Fix BSD sed error reported by Yue Du

This change is related to LZ4 issue #14.

 - Add more unique pattern to line recognition
 - Change Extended Regular Expression to Basic Regular Expression