Minor refactoring of get-module-code in syntax/modcode.

- Clearer names.
- Less (hopefully no) shadowing.
- Used main-source-path in place of resolved-path.
  They should be the same value, and in context this way is clearer.
Turned let into define in syntax/modcode.