Made the stuff about getting the current process name and path smarter in the windows version.