Expand tilde used in command-line arguments

This enables one to specify e.g. --with-opm-core=~/opm/bld/opm-core
Use config mode if possible when finding packages
Merge pull request #172 from rolk/172_confmode

Encourage the use of config mode if available