Prioritize lib-path over canonical imports.

Fixes #244.