Addling code to set HOME environment variable when not run from bash