better filename scrubbing than path.startswith