Fix purge_before_symlink