Added possibility to specify the destination dir

Added possibility to specify the destination dir as third argument to the call.

If the third argument does not end with a / character, the character is added automatically.