Let's use this awesome function instead of rewriting it.
Using first and second here wasn't such a good idea after all.
Replace vem with virtualenv in error message.
Corrected the regexp checking for test file.