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.