pickle files directory fix