pass dir to packageFilter

I needed this change to implement http://github.com/dominictarr/readme