by default make dir when writing npickle if one does not exist