Update thor to
https://github.com/erikhuda/thor/commit/fdb8028dfb85b58861453d524eba6999d9220504
Use the thor debug option instead of the environment variable

Fixes #2790
Merge pull request #2794 from rafaelfranca/rm-debug-config

Use the thor debug option instead of the environment variable