Add ignore_dirs param

As in https://pypi.python.org/pypi/tdaemon, by John Paulett.