Fix Savannah bug #20834: SIGSEGV when PATH is unset and -execdir is used