Remove pkg folder, and use ruby to clean the directories