Fixed updating when current file is newer than the distributed one, also fixed performance hit when checking for update