don't write out deps entries if nothing changed

Shortcuts a common case.
record and check depslog file version

Future-proofing against some change we may need to make later.
fix linux build after bad change on windows