update logic for check ini comments
Merge pull request #321 from smallfish/master

update logic for check ini comments