Various improvements. Fixes #268.

 - Treat all package paths as ending with a slash to fix path comparison issues
 - Avoid re-reading all packages twice when building, see also #325.
 - Fix bogus "License in subpackage different" warning