maint.mk: improve empty-line-at-EOF check