Bugfix: copy_dir doens't keep last slash