Handle rally urls too.
ensure script is run from writable dir.
don't print trailing newline.