Improved native apps detect to avoid problems when not installed