[WFCORE-171] Validate the file is not an existing directory

Checks that the file name used for a file handler is not an existing directory. Previously the file handler in the log manager would fail, but the operation would succeed. This validates the path passed in and fails if it's an existing directory.