Deb/bext

Wheezy first for review, other OSes will be added / tested before merge.
Probably because of the "/" in the path, `sed 's|foo|$CONFIGDIR|'` would probably have worked.