Use automated entry script generation

This patch removes the segc script from bin and instead generates one
automatically with setuptools.