Extended support for AWS build and Amazon Linux

Use sudo when needed/possible to be Amazon Linux friendly
Split firewall settings in a separate script
Split motd settings in a separate script
Fix monetdbd.service to properly stop the process