Reorder operations of maven-based build to make a bit more sense

Create /var/lib/maven before copying stuff into it, and set WORKDIR to
/ when we are done with /tmp. This way running 'bash' with the
generated image starts at / instead of /tmp.