On startup, attempt to set the working directory to $HOME.

Fixes #913581.
diff --git a/Mac/OSX/PythonLauncher/main.m b/Mac/OSX/PythonLauncher/main.m
index 70323f2..6841433 100755
--- a/Mac/OSX/PythonLauncher/main.m
+++ b/Mac/OSX/PythonLauncher/main.m
@@ -7,8 +7,11 @@
 //
 
 #import <Cocoa/Cocoa.h>
+#include <unistd.h>
 
 int main(int argc, const char *argv[])
 {
+	char *home = getenv("HOME");
+	if (home) chdir(home);
     return NSApplicationMain(argc, argv);
 }