Serial Number from Terminal
Have you tried looking at the I/O Kit Registry? 

Here is a link to the man page for ioreg provided by apple. 

Try this command to reveal the system's serial number:

ioreg -l | grep IOPlatformSerialNumber