Detect system tests or not earlier in runtests

* Some cleanups to have all options before detecting the kind of tests we want
  to run.