On OS X, prefer open over xdg-open

MacPorts might install xdg-open, but it doesn't work so well on OS X.
Add options to select PostgreSQL installation