Environment Variables Behavior On Haiku

So these patches are a workaround?
There is no find_directory used?!
How to use this find_directory correct then?