[Change] cleanup of lmdup() function, better error handling
[Change] added md5 verification of version updates