Tidy up the 'q' module.
Remove dist from 'normal' git files - should only be present in distributed versions.