Changed permissions for createWriteStream to octal, since that is how ssh2 treats the permissions number.