Fix argv[0] handling