hoist code to determine list of patched files from a diff into a dedicated function
make sure path passed to mkdir is an absolute path
fix scope of test_log
use det_patched_files, fix remarks, only make fetching GitHub token fail if token is really required
make sure config is reinitialized after running main(), clean up unused imports