Fix possibility of non-removed symlinked directory.