Use relative paths when importing files.

This will make imports work with `--basepath`, so it fixes #134.