fix scheme export, on Windows, HOME is not always set