Fixed crashing issue when running on Windows machines, which don't define %HOME% by default.