Would you mind updating one more time to normalize all the trailing slashes to match the surrounding code?  ie, no trailing slash for `mkdir` lines, but trailing slash for lines where you're copying a file into a directory?