Fix bin/detect use of Pathname