Fixed App.getPath to correctly support Py2Exe application on Windows

This fix solves the "System cannot find the path specified" error which occurs when running a Microsoft Windows generated via the buildexe.py script.

This has been tested on Windows XP and Windows 7.