Properly shellescape file in remote_file

When doing `test` the file should be shellescaped