Fix glob exclusion for directories