version_regex to upper case, since it's a constant
Check existence of updates dir only once
Don't open update file when not needed
More useful log messages