Made the FLAG_MOUNT_DIR bit only honored on a directory.