fix specifying meta.environment in templates