add codes to remove systemd unit files on rpm-based distros