Support /usr/local and /opt/local prefixes