script for checking if an application is installed