quilt: make it possible to override the path to getopt (based on patch from #9842)