rem: fprintf(stderr, "Fatal error: content not available, running from wrong dir?\n"); exit(-1);
add: if (chdir ("content") || !FileExists (testfile)) { fprintf(stderr, "Fatal error: content not available, running from wrong dir?\n"); exit(-1); }
context: CDToContentDir (char *contentdir){    char *testfile = "starcon.txt";        if (!FileExists (testfile))    {        if (chdir(contentdir) || !FileExists (testfile))        {            fprintf(stderr, "Fatal error: content not available, running from wrong dir?\n");            exit(-1);        }    }}