added a way to perform scp upload through a tmp directory (support for
sudo operations)