Fix prefixing when installing from source. Respect the conf_dir setting.

Previously it would just ignore whatever you set "conf_dir" to be.
Recursively create directories
Merge branch 'fix-prefixing'