Instead of `get_option`, use [`home_url`][1] which will determine ...

> the appropriate protocol, "https" if `is_ssl()` and "http" otherwise. If
> the `$scheme` argument is "http" or "https" the `is_ssl()` check is
> overridden. 
> 

   [1]: http://codex.wordpress.org/Function_Reference/home_url