don't include a path in externs unless rootDir provided
don't include a path in externs unless rootDir provided

As the comment in this code says, rootDir is required; we only
left it optional as a workaround for Angular leaving the param out.

angular/tsickle,angular/tsickle