Added check for macports and previous postgresql install