configure: Tidy up distribution-type dispatch

Signed-off-by: Euan Harris <euan.harris@citrix.com>
Merge pull request #450 from euanh/build-improvements

configure: Tidy up distribution-type dispatch