Fixed size passed to realloc() in _dmt_realloc()

Changed the size passed to realloc() in _dmt_realloc() to account for
the space the node occupies.
Changed example build script to create bin dir

Changed example build script to create the bin directory its going to
output to if it does not already exist.