common.sh: Fix invalid variables references.