build: fix eol type detection