Moving files into the right subdirectory