Have lesspipe itself supply what is needed for LESSOPEN