Cleaned up code in the installer and fixed a bug

Seafile Updater can now be overwritten by installing again.