Fixed shell variable printing in error message