Fix base.py os.path with settings.json