Use our standard invocation functions to get consistent logging and
error handling

this also adds some error handling that was missing
set ErorActionPreference
just cd rather than push-location / pop-location for simplicity
Merge pull request #2 from dickon/master

Improve error handling and logging in the build scirpt.