Added missing sanity check in libopts - closes #84