fix for KeyError trying to get the PYTHONHOME (obly available on heroku environments)