[os_xml] fix 209

 restoring old behavior: handle '$' as variable begin only, when a xml variable was previously defined in the same file