Restore the check to see whether this is a community package or not

Because we're co-mingling Composer files, we still need to check the type of package when listing installed packages.
CRUD tests
Catch exceptions for installation
Drop the `community_packages_dir` entirely
Ensure Composer knows where it's running from
Fix incorrect method name