Support patterns starting with a ./, fixes #1695

First stab at a fix for #1695... I wanted to get something down while it was fresh, though I'll take a look later and look for improvements. And of course, feedback is welcome. :)