Fix bug for config Motion in wrapper script

Signed-off-by: kfei <kfei@kfei.net>