recursively rename base name of files to parent folder's name (bash)