ssh: check if cache exists when saving external outputs
Right now, we are not checking if the file already exists when saving it, this would solve some issues regarding file permissions
Tests that must keep passing
tests/unit/remote/base.py::TestCmdError::test
tests/unit/remote/base.py::TestMissingDeps::test
Tests currently failing (should pass after your fix)
tests/unit/remote/base.py::TestCacheExists::test
Apply code changes directly inside /testbed/repo and use pytest to run any of the above test targets. Focus on making the failing tests succeed without regressing the existing passing suite.