Add support for building from a local archive or directory

Fixes #1.