The same page also describes your issue:
Providing filename argument in the callback is not supported on every platform (currently it's only supported on Linux and Windows). Even on supported platforms filename is not always guaranteed to be provided.
I think your best bet is to switch to another module providing similar functionality, like watch (which I don't have any experience with myself).