Fixes for the sftp storage subprocess and a reachability based preference for retrieval