Fixed test package dir sourcing for linter and doctests.