fix broken filesystem watching and improve handling of invisible directories
update version check to handle larger system versions