Use Paths.get instead of FileMonitor.pathFromString
See e0276a58a2993854a73d6ffd4e25d126223baedf