403.07 refined detection of last segment in EXEC functions