less dir changing code with new mk_cd() function