Ignore hidden directories correctly