Ignore APT_DIR when examining cache
Improve handling of platform-specific paths
Tweak naming
Improve recaching GHC and sandbox package DB
Improve install metadata handling