Added automatic configuration of RewriteBase during fresh install.
Fixed batch install usage of createHtaccess
Merge pull request #6015 from Srokap/installer_subdir_guesser

System auto-configures RewriteBase during installation.