Getting rid of references to global BASEDIR variable.
First crack at directory and file ignore filters.