fix bug where dir could be created despite --pretend option
With both --copy and --pretend options selected a directory could sometimes be created in destination (it shouldn't be possible).
Merge branch 'feature/fix_pretend_copy_bug' into develop