issue #461 make sure that CP only installs a stream log handler if none exists. Other linux-related tweaks.