Improved handling of excluded apps in old OTP systems