various fixes, on windows use HOME env variable for repositories with abstract location