Create dat and figures directories automatically