Fix documented Composer home variable name
Merge pull request #3554 from loonies/doc-fix-variable

Fix documented Composer home variable name
Also detect full temp dir, fixes #3559
Load plugins before purging packages, fixes #3557
Fix activation of global plugins, fixes #3557