Fix some syntax errors in the startup script, and import necessary GPG keys