Make directory depth configurable