tools/building.py: more descriptive on error

Print the command that failed to execute and try to tell the reason to
fall.