update: Trim directory level by slicing rather than string subtraction