Force proper type when joining path