fix for the following error when running the programs directory /examples

Change-Id: I6a731ffd1ade1f20ade06a2d697644eb6b0427ba
AttributeError: Environment instance has no attribute '_is_egg'