Index: trunk/ppImage/src/ppImageDetrendRecord.c
===================================================================
--- trunk/ppImage/src/ppImageDetrendRecord.c	(revision 20454)
+++ trunk/ppImage/src/ppImageDetrendRecord.c	(revision 20455)
@@ -34,5 +34,7 @@
     pmHDU *hdu = pmHDUGetHighest(input->parent->parent, input->parent, input);  // HDU for cell
 
-    const char *base = basename(file->filename); // Base name of file
+    // Strip off path and Nebulous bits
+    char *base = file->filename;        // Base name of file
+    for (char *new = base; (new = strpbrk(base, "/:")); base = new + 1); // No action
 
     // We don't want multiple listings in the header saying the same thing, so make sure we haven't put the
