Variable expansion added to dupcheck.awk (and a testcase for it)