Improve OS detection
Refactor storing packages
Improve cosmetics
Extend use of tags
Work around Cabal issues