Fix mistake in refactoring of test-osx-pkg.py.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>