Fixed issue with trailing slash in destination. Closes #13