are you sure that ``` sbatch_file_remote_dir``` ends with /? what about:

```
sbatch_file_remote_abspath = os.path.join(sbatch_file_remote_dir,
                                                                    os.path.basename(sbatch_file_local))
```