Move retrieval of module definition so it can run
Merge pull request #240 from kp52/develop

Move retrieval of module definition so it can run