fix variable name in bash script