Fix list program

Paths were resolved twice, so the directory wasn't found. List wasn't used until e15358d5aa3ec070cafc377c6eb80b579f4403d2 so that is why it hasn't been picked up on before.