Bugfix in sgetopt (long option without short)

When the option table contained a --long option without a -l shorthand,
sgetopt was unable to work properly.