Fix image_commands in the jessie manifest.

A small typo meant that the image_commands weren't running at all.
This worked surprisingly well!

Now that they're being executed, a few bugs were apparent, also fixed
in this patch.

Change-Id: I46cbeeafb7ec72dcde8e498b41bd9cd203a65616