Bugfixes in the uninstall and install scripts

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>