Rename detect to bin/detect