Resolve config lines with character '#' correctly when it's not used as comment