remove unnecessary check for directories starting with dot