Fix a previous patch. I thought the broken build was due to the
embedded #load directive, but it was something else.
Use Str.global_replace instead of Str.replace_first.