Fix DeployCommand to work with EventManager

Fixes #160.