Add function to lookup correct datadir