Fixed problem with sed replacement in build script