Does make.conf let you use single quotes?  Because then it would be
`echo "MAKEOPTS='-j$NJOBS'" >> '/etc/portage/make.conf'`
which is easier to read ($NJOBS is the variable you stored the number of simultaneous jobs in, as mentioned in the previous comment).