Finally got idempotent directory creation working