Add exception handling and better trace messages in mod definition process. Created parent directories when exporting mod definitions. Fixed issues with embedded definitions. Fixed bad github links.