Installer: More robust Python path handling