CS-5525 - Handling htaccess file in upgrade and install process