Move change of debug file to before game load