Allow adding of directories. Fixes #21