Write console.log to datadir instead of current working directory and fix cli prompt duplication resulting from a merge conflict.