Zarafafolder: untangle some overly clever code

Make the code's logic easier to follow by untangling the nested trigraph
statements into a simple if/then tree.