Rewritten update checks for better stability.
Fixed #21.