Fixed requiring packages for installation

- If firewall is enabled, firewall package is required for installation
- If SSH service is enabled, SSH package is required for installation
- This change fixes the behavior in a way that these requirements
  are removed if service is diabled