Changes to the consistency lines..

I *think* the dir(k) function isn’t working on windows or mac- hence
changing this. This got me stumped for ages..