fix: chdir up before moving dir