Track file modification. This chunk of code is dependent on jnotify library.