Add document type check to filepath passed through command line.