Fixed date formatting issue for NT 6.2+, fixed a temporary directory path issue.