Don't use magic value names for program name

Avoids the use of magic value names, such as '__main__' as the program
name for command line help. Chooses the first name in the absolute path
that is not a magic value. If all else fails falls through to using the
function name. Fixes #15