writer-base: Use filename as tie breaker, not contents

Avoids spamming out-dirs with dead data when binaries change.