Support for multiple directories

Fixes #4