Fixed bug in cp/mv.