scanner: Fix optparse on early 2.6 (#302)