Allow trivial-validate.py to validate single file

If the first argument to trivial-validate is an existing file,
then only run validation tests on that file. Optionally, specify
a directory in which to check for duplicates of this file.
Ex: python trivial-validate.py <filename> <rulesets-directory-name>

Otherwise, if the argument is a directory, default to previous
behavior.