Refactor BuildImgCmd command to accept the docker tar folder as a InputStream, so we can build it on the fly without a temporary folder.