Figured out how to minimize size of /envs/.pkgs directory.
Hopefully this will enable not killing users' home directory disk quotas.
Made script much less verbose, and also therefore cleaner to read.