fix macos default-directory issue on initial launch from finder