folders should not be returned by pexpect.which()

Let's try this again as a single squashed commit, issue #37 try number 3. no random, test fname "gcc" and "g++" instead.