Fix #24: improve error messages during compilation

My goal with the added `echo` statements is to make it easier for people with custom buildpacks to debug the `detect` script. Hopefully that also solves issue #24.
Just been bitten by this today, I'd agree that it's best to allow `detect` to fail and give the dev a helpful error message.