Fix exit status for debian package
Minor fixes for rpm packages