Fix script import to be http/https agonstic