Fix the regex for single quoted string

The string parsed from `has('mac') || has('macunix')` was `'mac') || has('macunix'`. This fixes the bug and only `'mac'` and `'macunix'` will be parsed as single quoted string.