Some refactoring regarding log paths and environments configs