Detects when a file changed