check_command function can now check for arbitrary commands. Used this to replace a number of recurring patterns throughout the script.
Code cleanup - if/then statements.
Version information for Apapche/MySQL/PHP was spotty when not run as root.