Fix setting of progname when argv[0] doesn't contain '/'.