Take local imports into account when deciding whether to rebuild

Fixes #3.  (Note, however, that it only looks relative to the working
directory.)
comment formatting