build: trim newlines and spaces from binName