fix nrInitLog dir creation & fix set appname