Construct path correctly