[BUGFIX] Avoid fatal when flushed directory is a symlink