loop through all writable dirs