Do not use $OSG_APP if the installation is not actually there.
Merge pull request #186 from davidlt/osg-app-check

Do not use $OSG_APP if the installation is not actually there.