added support for macports and fink packages detection for mac osx