typo in lib/core.sh

fixed two variable reference typos