Set system error code to number of failures

If archetype parsing fails, set error code to 255, otherwise, set it to
the number of JSON files that failed to parse.

Fix #3