Perhaps local and so forth could be given a --dist=foo switch, and these sorts of errors could say "can't figure out your dist from git, use --dist or fix your repo".