fixed bug that occurs when %HOME% is set on windows