bugfix in pastry.environment.js