Made sure that the resource manager listen for file system changes.

File System listeners changes are now notified from the main thread.