Restore backup and htaccess fixes

- [x] - CS-4874 - Add / at the end of folder name in htaccess template file
- [x] - CS-5368-Restore of backup is brake on back-end or terminal