fixes #2519 - data directory is now read from config.json