Move packages into their corresponding directory