core: made strncmp instead of strcmp in case of new lines.
Merge branch 'maint'