minor app.js update to env discovery