Init script added. Log dir creation fix.