Use datadir variable for file path