Change python's path generation to always refer to the app bundle only.

Includes a small test app that does nothing but throw log messages to
test the result as library Test Suites do not run with sandbox paths.