Replace __progname with a small function
Replace __progname with a small function

This patch removes the use of non-standard __progname and replaces it
with a small function.

Signed-off-by: Joachim Nilsson <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>

troglobit/mcjoin,troglobit/mcjoin