In credentials, compile regex only once
Hacks in place to run in EL5 and Ubuntu