Fix logic error in docker image existence check
Also rearranged the code to make it easier to follow the structure and actually find this error.
Closes #88 (closed)
Also rearranged the code to make it easier to follow the structure and actually find this error.
Closes #88 (closed)