backward compatible way of checking if app is installed
Merge branch 'issue-42'