Integrate ps8_getopt(). Update option list.

The ps8_getopt() function is implements the POSIX getopt() spec, and may
be used on systems that lack getopt().
Update .gitignore