Modify Dockerfiles to checkout branch at the same time as cloning.