Added code for initializing packages on EC2 instance