add the print file if student snopt is used
fix a bug in the previous way to set the print out file for snopt