catch missing database file when running 'test' instead of crashing

The tool would crash instead of failing gracefully if you ran --test without an existing .bitrot.db file. This PR gives an error message instead and exits with an error code (2).