run.sh: Fix breakage in script, --foreground must go before number