backward compatible way of checking if app is installed