Rationalize `build` and `hack` directories

This also enables incremental builds for dockerized builds.

Fixes #1729
I used the pipe but not the --strip-components.