Fix error in test cleanup.
Merge pull request #185 from larssono/sftp

Fix error in test cleanup.