Fix return value in shell scripts

Signed-off-by: Stefano Babic <sbabic@denx.de>