consider comments when preprocessing config file