Safer implement ion of getProcessPath on Mac OS X.
Safer implementation of getProcessPath for Windows.
More accurate documentation.