Different implementation of datadir