make trailing slash in downloadto, destinationpath optional