Fix use $FUNCNAME insted of $0 in bash function.