fix launchAndQuit to actually wait for safari dirs if we need them