Update memstat.sh

/tmp/res3 should be created before writing.