t: Fix running make check in srcdir

A couple of mistakes were made in the test environment setup, that made
tests fail hard when run in the source directory. These have been
corrected now.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>