Moving files to correct directories