Don't restart container after committing, fix committing function (versi...

...on is now taken into account to build image)