Only update-alternatives when package is installed

The two execs running update-alternatives run every single pass.  This quick hack resolves the issue.