fix config read line bug
Merge pull request #176 from gregerg/fix/config_read_line_bug

fix config read line bug, closes #142