Uses event emitter listeners method when possible
Build
Fixes ENOTEMPTY error when deleting a folder