normalise 'build' function args to match 'release' and 'deploy'
Merge pull request #241 from musicglue/pre-build-hook

add pre-build hook