Modularize docker build environment

Moves docker build environment to a modular entity, builds up command output
with more configuration and proper settings. Adds some tests for command output
coverage.
Move build json output to version checkout path

Avoid conflicts with multiple version builds