I've always found that you should never presume that a variable will or will not have a trailing slash. In most cases, I build a custom function which takes multiple ...arguments, and combine them to generate the path. In other cases, I just always add the slash as I've never seen a double forward slash cause issues. In linux, the OS automatically knows what to do with it.