fs: readFile and readFileSync throw EISDIR on a directory.

Some OSes (freebsd) allow to read a directory.