Added log dir to before-install
Fixed logging