let -d be parsed as term:filetest rather that an unknown sub with prefix

I added *a lot* debug stuff for this, which can be turned on by setting $DEBUG.