This implements more correct file open options. While this is
not strictly required it does appear to make the script behave
more consistently across different platforms.
The patch also renames the file name and related content to
ensure that the tool is correctly spelled.
Change-Id: Idde0141691e1008bead802bd6f3759c12e37b02b