Append newline when reading in settings

Some sed implementations, like that on Solaris, don't process lines which don't end in EOL/newline. Forcing a newline helps these versions.
Switch grep -q for >/dev/null

This makes the grep commands cross-platform compatible.
Merge pull request #86 from lildude/improve-compatibility

Improve cross-platform compatibility