Fix wait() so it actually re-reads changed files