Allow command to be in the first position rather than the last. See #28.

The problem with getopts is that it cannot handle non-optional args before
optional arguments apepar.

So ./setup.sh run-backend -x ./ will not work unless we shift $1. This patch makes
the code a bit cleaner.