Change order of package state check.

It's either installed or not.
Merge branch 'master' of https://github.com/sanvisum/sanvisum
Remove php5-mysql.  It conflicted with php5-mysqlnd