Make sure to use the passed in path if not a dir.
Fix passing in single directories.