fix: avoid corruption on make install
The command does not always recognize that the collection is currently open in the system Anki. When installig while Anki is open, the database gets corrupted and has to be restored from Ankiweb.
The command should instead only install when it is safe to do so, checking either in the script (preferred) or in make that anki is closed.