Fix update notification issue

Move two module level variables, _lastNotifiedBuildNumber and _lastInfoURLFetchTime, into their respective functions.

@dangoor and @gruehle Can you review this?