BUG: ensure to use abspath for __file__.

When test suite runs from -m nose.core, __file__ is not always an
absolute path (at least on OS X), and some tests rely on it being
absolute.