Nicer directory test.
Simplified profile.
Better profile for MacPorts and Homebrew.