Fixing #77 and the problem when the %HOME% variable is set in Windows