tools/building.py: more descriptive on error

Print the command that failed to execute and try to tell the reason to
fall.
Merge pull request #285 from grissiom/better-tools

tools/building.py: more descriptive on error