__noauto_regexp_helper: detect quote char at runtime

this allows to use same rpm-build-macros but using old rpm 4.5 build