pass flags as string of single letter

Flags need to be passed as string of single letter. Otherwise puppet fails with
```puppet
regsubst(): bad flag `g'
```