Exit with the correct code from cake build
Merge pull request #1 from Impromptu/improve-build

Exit with the correct code from cake build