exec: updating FakeExecutor command to support envs.

related to #793.