Fix issues with NIOFileResource and symbolic links

BasicFileAttributes.isDirectory() returns false for a symlink to a directory so use File.isDirectory() instead.  Also, need to use version of walkFileTree that allows us to specify FileVisitOption.FOLLOW_LINKS.