Allow blacklisting local files from upload.

This is a pull request to implement `ignore_on_local` from issue #24.