mm directory $var/cd fixes