Ensuring correct ordering of versioned packages