Add support for local repositories

Instead of using `http:` or `ftp:`, we can indicate local distributions using `file:`.