Fixed #1489043: Tasks - bin/updatedb.sh script - error to STDERR instead of STDOUT and more

Proposed fix for #1489043

Thanks you.