Fix module resolution rules

Change-Id: I3c3584e5a2029d180fa17f1b0c653e91d79db621
Reviewed-on: http://gerrit.dmdirc.com/4085
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>