make writable dir configurable (test)