Expand logpath before using it

Change-Id: I09ce13e60dd9720c4bc5c1a2cc770dc611b9a164