make debug distribution conditional on the -g flag being passed to ./distribute.sh