Link-resolve tmp dir in tests