fix cp command for restore

the restore creates and copy all the files in a sub folder of the same
name (ie etc/etc)
Merge pull request #969 from cyrilleJ/master

fix cp command for restore. Thanks cyrilleJ