Depend upon --chdir if provided; process.cwd() otherwise.