Revert "adds more control to specific version when using apache2 and distro is amazon linux"

This reverts commit 00654ef47d29bf1ad22303ede224815028d749c0.