Now checks permissions on output files in validation

The validation function for checking output files now checks their
permissions rather than simply whether or not they exist.