Replace sed by native pkgxx' function replace() in build() part.