fixed determination of home folder for root