configure: fixup using wrong var for endmntent()