fix random test failures caused by test_god leaving God.pid_file_directory in invalid state