fixed case of existing dirs