Changed ftp expect pattern
Changed else block for copy build function