autodetect dir to run statistics script
Merge branch 'dev'