t4055: avoid use of sed 'a' command