fixes an issue where the current directory name would be undefined on Windows machines