Added a conditional check for macports on osx