APPIUM_HOME autodetect isn't working in latest release

I just upgraded to the latest release of Appium, and the automatic detection of APPIUM_HOME no longer works in my Selenium library project. I have to explicitly specify APPIUM_HOME in my process environment. Prior to the upgrade, this worked as expected. Instead of selecting ~/.appium, the autodetect implementation is selecting the root folder of my library project (current working directory). Was the autodetect implementation revised recently?

Maybe the server assumes it’s a dev setup. Make sure there is no extra package.json in that directory which is autodetected