Copy logic from preflight necessary to iterate all scripts in the postflight.d folder. This functionality is present in preflight, but missing in postflight.