Quote variable to preserve newlines
Build server: rework test to find which tags to build

Most important change is to only mark a tag as built
when it's really successfully built.