Refactoring the awsboxen deployment script.