return code from last line of response

Sometimes the ftp server returns multiple lines of responses. This patch will return the code from the last line.