Changed location where logs opened

So as to fix bug where files were opened prior to checking if you have root.