Implemented configurable temp dirs