respect relative paths in auto-import

Reviewed at https://rbcommons.com/s/twitter/r/1121/