Improvements to Cakefile

- Use local versions of commands
- Log process errors
- Report the correct exit code