Ensure getEmitOutput only check the file requested
Merge pull request #1332 from Microsoft/getEmitOutputCleanup

Ensure getEmitOutput only check the file requested