lcg-cfg: refactorize conf file to use variable interpolation