fix replacement of master commit command
added removal of temp master container