Added option to write netlist to specific directory