customizepkg: make more robust

- do not require double escaping anymore
- do not require escaping of anything but regex/sed control characters
customizepkg: use braces around inline variables