Fixes for the postinstall script for Ubuntu and SUSE