Improved error handling on startup, and fixed a path-handling bug that caused "error creating launcher's dir" message on first run.