Initialize some variables to hush warnings about uninitialized data
Correct use of retrun values from ftruncate()

ems/index.js:
  emsDescriptor.persist	default	did not	match docs
  emsDescriptor.persist	is false when no filename is given