Allow more flexibility for beagrep args

Used in search-asdk

Signed-off-by: Bao Haojun <baohaojun@gmail.com>