Revert "Fixed the /etc/profile.d/cloudwatch.sh"

This reverts commit 5808a8950889407042b5209f4ab89e74b83d7fd1.
Fixed the logic /etc/profile.d/cloudwatch.sh