Fixed wrong variable name and spurious curly bracked on Windows.