Amended common.py to set correct datadir.