Fix setup.sh and .htaccess for TMX

(issue 199)
Merge pull request #233 from flodolo/issue199

Stop setup.sh from breaking .htaccess for TMX