Simplified environment check. Bundling with ender for browser fails otherwise