Update lib/htaccess.php

bug fixes