Update papertrail recipe to work on both stable-v2 and stable-v4 stacks.