Path should only be a directory, not a file

Codemod does not work on individual files (and the update.py script seemed to work just fine, but changed nothing). I updated the path validation so that it only allows directories.