Update setup.php

Dynamically writes htaccess for directory