Bugzilla – Attachment #834: patch for bug #883
// depends on the leading '/'
//
char pathbuf[PATH_MAX];
getcwd (pathbuf, sizeof(pathbuf));
if(getcwd (pathbuf, sizeof(pathbuf))){}; // Work around warn_unused_result warning
// Walk up the directory tree looking for a directory that has files that