Sets the main script location if it cannot be called from argv
public function setMainScript(string $script) : self { $this->script = $script; return $this; }