added code for correcting https:/ to https:// inside remote url