jlogctl: fix getopt use

The 5th argument to getopt_long returns a long options-related
index, not the index of the first non-argument option as the code
was assuming.  That would be the global optind, so use that.
Merge pull request #4 from fastly/jozef/jlogctl-getopt

jlogctl: fix getopt use