added support for checking a file for directory paths