Deb/bext

Wheezy first for review, other OSes will be added / tested before merge.
@domcleal added here - for some reason sed refused to accept an 's/1/2' style with $CONFIGDIR in it, so I opted for blank out and then add back in. Clunky but it'll do.