Added functionality for sam install from cdn