This patch allow to run the script as normal user (ie without sudo) by setting -rx permission (ie 0o755) to directories. Indeed, Linux need -rx permissions to allow read directories contents, not only -r.
Until now chmod 0o444 at the end of the script prevent read output directories and crashes the script if ran as standard user (ie without sudo).
Also tested with Windows 10 with Python 3.8.1.