shell: fixed some cp and rm problems