Fix issue if program_invocation_name isn't available on the system.