Rename and move files to subdirectories