Set auto chaget dir