mv: free the with_slash in check_dir_in_index()