Save change of directory