Moving files in the appropriate directories