Fix handling of arguments in autohelp-wrapper

The shift should happen after the final processing, otherwise
getopts aborts if more than one parameter is given.

Change-Id: I47e9f390cfe08404e71b26c49b02871b3b34f303