Adding support for linux as well, based on IDEA fsnotifier