Use a portable sed(1) construct to retrieve $libgee_dlname, fixes bug #688106