Reproduce master merge request for recursive lists

Duplicate of https://github.com/Herzult/php-ssh/pull/20