Make sure that root and uri are located during preflight. Note that setting uri via cwd still does not happen until the 'bootstrap root' phase, after the kind of site (still only Drupal supported) is known.