Use __DIR__ to mock module directory in test
Merge pull request #542 from lenton/3.4/feature/fix-test-for-composer

Fix modules test to work when composer is fully implemented