Renamed write_mat.r to write_mat.r.in

Initial work to add check for compression during configuration