Add print-lines, which prints its arguments one per line
git-archive-and-format-patch: Don't break when called from a non-toplevel directory

Some of the commands called by git-archive-and-format-patch didn't work properly when called from a lower-level directory, so the script now cds to the top-level directory before doing anything.