cran.lister: Refactor and fix cran lister
Prior to this commit, the code was actually duplicated with an old version which would not work.
Related D1492#41287