Fix memuse.sh to measure resident stack size