Fix typo in displayed message.
Add a script which validates a compstate folder.

This is based on the validation utils. It prints all the errors
found and then exits with the error count as its returncode.