[shell] Returning value from called function in a shell script