When calling getFile with a destination that is an absolute path (or more generally, with a path including /) the file is incorrectly stored locally.
The cause of the issue is the replacement of / with \\ in getCleanedSmbClientArgs for the destination argument.
I think this can be somewhat avoided by using the workingDir option, but strictly speaking the destination argument should be exempt from that sort of path modification.