Fix bug when var is empty
Set IMAGE_NAME during initalisation

This resolves an issue where non-clean builds do not calculate the
image name and, therefore, almost all the `docker` commands fail.
Unstomp on flags
Merge pull request #9 from anchor/fix-var-init

Set IMAGE_NAME during initialisation