#22: scanner.py, add 'log/' directory if doesn't exist
#22: scanner.py, import 'os' module