Fix read-installed options

Options were ignored, and `opts.depth` can be zero.