Support per-directory in detections pbs job