Tweak comments added by `write` function on packages_file.dart. Now adds "# " in front, not just "#", and doesn't treat the empty string after a final "\n" as an extra line. R=sgjesse@google.com Review URL: https://codereview.chromium.org//1167223004.