Add package list flattening scripts