consolidate support functions in a single file

Hi,
this pull request creates a file with some useful support functions to distribute.sh.

Are you sure about testing which with -is? -is is an option to lsb_release, not to which right?