Switched replace for addtextdomain task

The replace task worked for updating the textdomain in the Flagship
Library, but I could see it failing under certain circumstances. The
addtextdomain task was designed for this purpose, so I think this is a
better solution.

Props to @ctalkington for pointing this out.