rewrote make_case_matrix to store portable file path correctly