Fixed JNotify load detection

This ensures that dev mode works on FreeBSD.
Merge pull request #3164 from jroper/jnotify-load-failure-detection

Fixed JNotify load detection