Correct the shebang line in the detect script