Fixed check if docker image already exists.

(option -q will only output numeric ids, but we need to check the image tag)

Currently every test run will build a new docker image :(