affile: poll-file-changes refactor