Fix: Host detection during installation

Fixed a bug causing the host detection in install step 6 to include the
install/index.php in the host and image url.
This may be caused by some Microsoft IIS versions reporting the current
script name with a capital letter at the beginning.