On the other hand, would be better to use Msf::Post::File.exist? to check for the existence of the file in the remote machine if possible. Any reason to not use that API here?