Properly handling script-PIPs for applications