build: improve handling .gitignore with empty lines during clean

Change-Id: If2e1a256d3ee4f4806043cd7b3ab4668fd37f67a
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>