Corrected trailing slash

The test to see if a trailing slash was present didn't function.
Needed to create destination folder