Fix EZP-21797: recursive sudo usage.
Merge pull request #1083 from joaoinacio/EZP-21797_recursive_sudo

Fix EZP-21797: Support recursive sudo usage