only create pkg dir as needed