rename directory and create a packaging script