fixes to correctly call and launch the app file from inside a package.