fix cwd in mds