Fixed broken file log and directories permissions