TF updated to use HOME dir not hardcoded