Use basename of output file for remote name.