Declare variables earlier so sftp download works
Merge pull request #80 from 40Digits/master

Declare variables earlier so sftp download works