change OSG_GRID to OSG_APP in order to check for the existence of an OSG environment