Move file to the correct directory