updated script to return the right response value

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>