Fixed sed replacements in build script