test: improve detection of installed Valgrind package version

Also restore vmem_valgrind/TEST4.
Merge pull request #11 from krzycz/valgrind-detection

test: improve detection of installed Valgrind package version