Configure build directory using build config object

Extends  [benpriebe's](https://github.com/benpriebe) build config from PR #12 to allow configuration of the build directory. This supersedes PR #9 which used a builder method. Ben's approach seems cleaner - build taking a single config rather than chaining separate methods.