Handle explicit absolute imports correctly

Fixes #239.