Offer API to get paths as promise of array

Our own internal consumption of paths prefers a promise over a stream, as does our internal custom CLI. This exposes it as a supported API, and reduces some complexity in the CLI.