Fixes #5058: add method to ensure lhs=rhs in files

Oops, this didn't get updated, please adjust to actual implementation.