build: improve handling .gitignore with empty lines during clean

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