[#2255] update preremove and postinstall to support rpm behavior.  also sure all files are owned by the service account