Refined the expected path type when the `files` option is used.