Fix detecting errors when running distrib-dirs/distribution.

While here, reword and reindent