Makefile: fix dist target

The dist target did not create a compressed archive,, so use bzip2 for
this. Also, introduce the GITREF and DISTFILE variables to allow
customization of the commit used for the distribution and the file name
of the archive.