replace actual .git dir list with FOR search. other improvements