File transfer via SFTP fails

See this script made by me and rexteded.
http://forum.mikrotik.com/t/backup-config-to-gmail-v1-7/156147/5

Do send both binary and readable backup to email