Fixes for ncm-download

There were warnings about uninitialised values, which in turn led to the calculation of timestamps and thresholds to be wrong.

This probably had files downloaded inconditionally, instead of only in case of updates.