Fixed installation of packages via macports on OS X

- append/extend on arrays return None and therefore None was being passed to run_all
- compare_dicts function was called incorrectly
Merge pull request #18411 from Unity-Technologies/osx-fix-macports

Fixed installation of packages via macports on OS X