Improved EmbeddedGroovy shell to execute file as a whole.