Trailing backslash fix

Fixed issue with trailing backslash being added on non-windows systems