Use type -t apt-get, instead of checking PACKAGE_MANAGER.
Auto-detect the package manager instead of using the old PACKAGE_MANAGER.
Auto-detect brew with type -t instead of PACKAGE_MANAGER (issue #13).