Use $OSTYPE instead of `uname -s`, where possible.
Extract zaw configuration to separate file.
Improve installation script.