t4118: avoid sed invocation on file without terminating newline