Fix data directory creation