Add check for correct file in task data event

Reported in #9

- Add check for same file before resolving the promise
Merge pull request #11 from jgable/fixMultiFile

Add check for correct file in task data event