proper way to determine if apache2 is installed