Added https support to main script, separate script for those that installed prior to Dec 3 2013.