Check modified flag prior to calling ruby_binding.write_boot

* Modified write_all_modified to return the appropriate ruby fixnum
  value.
* Updated the runtime/rakefile to check for modified return value prior
 to calling ruby_binding.write_boot.