Fixed log file redirection after crash on OS X