Instead of an `inreplace` this probably wants to be a patch as it's upstreamable. Also, could you submit a PR to upstream with this? Thanks!