allow setting default compression scheme

All this repo detection stuff needs an overhaul. WIP out-of-tree, just
committing this in for now.