Use a distribution in the test if provided.
Clean up some build-related stuff.
Merge pull request #26 from nebula-plugins/custom-distribution-test

Custom distribution test