Fix program discovery.

When a block is provided, IO.popen() returns the block's result.
Since it was previously empty, nil was returned.