fixed mv/cp bug for encrypted repo