Only autodetect if we have a test directory.
Merge branch 'missing-test-dir-bug' of git://github.com/sedrik/erlang.mk