@n8 The awesome solution would be that the institution keep experienced developers on payroll for researchers to collaborate with on software quality and practices, but even with preliminary evidence that code publication improves impact that's unlikely to happen.
Maybe if a single institution somewhere in the world does this and can show results, it could start the ball rolling?