Quote variable to preserve newlines
Refactor function usage to avoid code duplication
Build server: rework test to find which tags to build

Less intermediate file accesses
More robust with regards to line endings
Don't mark a tag as built when the tag build script failed for some reason
Build server: also mark deliberately skipped tags as built
Build server: some more logging
Handle more tag variations correctly in major_minor function